package org.jinghouyu.json.beans;

import java.util.List;
import java.util.Map.Entry;

public interface KeyValueDescriptor<T> {

	public List<KeyValue<String, Object>> listItem(T bean);
	
	public static class KeyValue<K, V> implements Entry<K, V> {
		private K k;
		private V v;
		private Class<?> proBeanType;
		public KeyValue(K k, V v, Class<?> proBeanType) {
			this.k = k;
			this.v = v;
		}
		public K getKey() {
			return k;
		}
		public V getValue() {
			return v;
		}
		public V setValue(V value) {
			return v = value;
		}
		public Class<?> proBeanType() {
			return proBeanType;
		}
	}
}
